package com.huanxing.cloud.pay.api.feign;

import com.huanxing.cloud.common.core.constant.SecurityConstants;
import com.huanxing.cloud.common.core.constant.ServiceNameConstants;
import com.huanxing.cloud.common.core.util.Result;
import com.huanxing.cloud.pay.api.dto.CreateOrderReqDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestHeader;

@FeignClient(contextId = "remotePayService", value = ServiceNameConstants.PAY_API_SERVICE)
public interface RemotePayService {

	@PostMapping("/pay/create-order")
	Result<Object> createOrder(@RequestBody CreateOrderReqDTO createOrderReqDTO,
			@RequestHeader(SecurityConstants.SOURCE) String source);

}
